package com.example.demo.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class Temp {
    @NotNull
    @Size(min = 3, message = "Name must be at least 3 characters long")
    private String stuName;

    //@Range(min = 100,max = 999,message = "studentNo must be three-digit integer")
    @NotNull
    @Range(min = 100, max = 999, message = "studentNo must be three-digit integer")
    private int stuNo;
    //学生的学号
    //学生的年级1
    @NotNull
    private int stuGrade;

    @NotNull
    private String profession;

    @NotNull
    private String college;
}
